package org.apache.dubbo.demo.example.eg17;

public class DemoServiceStub implements DemoService {

  private DemoService demoService;

  public DemoServiceStub(DemoService demoService) {
    this.demoService = demoService;
  }

  @Override
  public String sayHello(String name) {
    try {
      return demoService.sayHello(name);
    } finally {
      System.out.println("***************** invoked in stub *****************");
    }
  }
}
